package com.erli.exchange.model;

import javax.validation.constraints.NotEmpty;

import com.erli.exchange.common.validate.LoginGroup;
import com.erli.exchange.common.validate.RegisterGroup;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 * @Package com.erli.exchange.model   
 * @ClassName:  LoginModel   
 * @Description:登录
 * @Author: LeeHo
 * @Date:   2019年3月18日 下午11:57:09   
 *
 */
@Data
public class RegisterLoginModel {

	//用户手机号
	@ApiModelProperty(value = "用户手机号")
	@NotEmpty(message="用户手机号不可为空", groups= {RegisterGroup.class, LoginGroup.class})
	private String mobile;
	
	//用户密码
	@ApiModelProperty(value = "用户密码")
	@NotEmpty(message="用户密码不可为空", groups= {RegisterGroup.class, LoginGroup.class})
	private String password;
}
